package com.bookpavilion.cart.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient("bp-goods")
public interface GoodsClient {
    @RequestMapping(value="/goods/{id}",method= RequestMethod.GET)
    public Result findById(@PathVariable(name = "id")String id);
}
